package com.wlin.leaf;

/**
 * Copyright (c) 2010-3020 Zhongshan Pole 3D Electronic Tech. Co., Ltd. All Rights Reserved.
 * <p>
 * This software is the confidential and proprietary information of
 * Zhongshan Pole 3D Electronic Tech. You shall not disclose such Confidential Information
 * and shall use it only in accordance with the terms of the agreements
 * you entered into with Zhongshan Pole 3D Electronic Tech.
 * <p>
 * 项目名称：diyhome-parent
 * 类名称：WorkerIdGetter
 * 类描述： ${DESCRIPTION}
 *
 * @author wlin
 * @version 1.0
 * @since 2018/9/21
 */
public class WorkerIdGetter {

    private WorkerIdObtainStrategy strategy;

    public WorkerIdGetter(WorkerIdObtainStrategy strategy){
        this.strategy = strategy;
    }

    public Integer getWorkId() throws Exception {
        return strategy.getCurrentWorkId();
    }
}